// dialog script for town 26: Crystal mine

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	personality = 48;
	nextstate = 1;
	condition = 1;
	question = "Commander Ningal";
	text1 = "A beautiful woman, surrounded by armor, sits in the chair in front of you. She looks rather worried.";

begintalknode 2;
	state = 1;
	personality = 48;
	nextstate = 1;
	condition = 1;
	question = "Can we enter the mine?";
	text1 = "_No, sorry, but you can't. Unless you have an Empire order or some sort of a permit._ You look at her with begging eyes. _I said you can't!_ You leave it at that.";
	text2 = "_I'm sorry, you can't. You must have a permit to go in._ You show her the letter you got from General Flamington. She takes it and reads it. _Its okay. You may enter the mine._";
	text3 = "You ask her again if you can enter the mine. She looks slightly agitated at you. _I think I already told you you can go in. Now leave me be, please, unless you have something important to share._";
	code =
		if (get_flag(12,3) == 0) {
				remove_string(2);
				remove_string(3);
				}
		
		if (get_flag(26,0) == 1) {
				remove_string(1);
				remove_string(2);
				}
		
		if (get_flag(12,3) == 1) {
				if (get_flag(26,0) == 0) {
						remove_string(1);
						remove_string(3);
						set_flag(26,0,1);
						}
				}
	break;

begintalknode 3;
	state = 1;
	personality = 48;
	nextstate = 2;
	condition = 1;
	question = "What's wrong with the mine?";
	text1 = "She looks at you with horror in her eyes. _A few days ago, the workers found some sort of a passage down. They came to a strange wall. They decided to blow it up, the idiots. They opened some sort of a crypt._";

begintalknode 4;
	state = 2;
	personality = 48;
	nextstate = 3;
	condition = 1;
	question = "What crypt was it?";
	text1 = "She sighs. _I don't know. It was a nightmare. Apparently, the Senarti... I take it you are familiar with them?";

begintalknode 5;
	state = 3;
	personality = 48;
	nextstate = 4;
	condition = get_flag(26,2) == 0;
	question = "No, tell us more about them.";
	text1 = "_You didn't hear yet about them!?_ She looks confused and irritated when you say that. _The Senarti are big cats. I think you should go to Flanagan, the mage in Voughton? Ask him. He knows more about them.";

begintalknode 6;
	state = 4;
	personality = 48;
	nextstate = 1;
	condition = 1;
	question = "Now tell us more about the mine, please.";
	text1 = "_Ah yes. Where was I..._ She thinks for a while. _Well, they where doing some ceremony in that crypt, or temple, or whatever it was. Many deaths. Almost all workers were killed._ A tear drops on her polished armor.";

begintalknode 7;
	state = 3;
	personality = 48;
	nextstate = 4;
	condition = 1;
	question = "Yes, we know them already";
	text1 = "Ah, that's good. Then I don't have to waste my time talking about them.";
	code =
		set_flag(26,2,1);
	break;

begintalknode 8;
	state = -1;
	personality = 48;
	nextstate = 1;
	condition = 1;
	question = "What are your duties?";
	text1 = "Mainly guarding the mine. It was abandoned recently. It's quite dull, actually, guarding the mine and all.";